package com.itheima.job.service;

import com.itheima.job.dto.ActiveDTO;
import com.itheima.job.dto.AuthDTO;
import com.itheima.job.dto.RegisterDTO;
import com.itheima.job.result.Result;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author byZhao
 * @motto Talk is cheap . Show me the code!
 * @modify 2021-11-27 11:32
 * @description
 */
public interface UserService {

    /**
     *  注册业务
     * @param registerDTO  注册业务对象
     * @return  Result
     */
    Result register(@RequestBody RegisterDTO registerDTO);

    /**
     * 激活业务
     * @param activeDTO  激活业务对象
     * @return Result
     */

    Result active(@RequestBody ActiveDTO activeDTO);

    /**
     *  登录业务
     * @param authDTO  登录业务对象
     * @return Result
     */

    Result auth(@RequestBody AuthDTO authDTO);
}
